package cn.edu.nuc.fourth.model;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 办学条件
 * 
 * @author 57681
 *
 */
public class School {
	private Integer sid;

	private String sdate;

	private Integer userid;
	
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String eatSeats;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String lBooks;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String newspapers;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String lSeats;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String tComputers;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String tNotebooks;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String sStandard;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String sMoney;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String equMoney;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String equipments;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String allArea;
	@NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
	private String mainArea;

	private String checkDate;

	private Integer xCheckstate;

	private Integer cCheckstate;

	private String checkComment;

	private String checkPer;
	
	private Integer state;

	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	public String getSdate() {
		return sdate;
	}

	public void setSdate(String sdate) {
		this.sdate = sdate == null ? null : sdate.trim();
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getEatSeats() {
		return eatSeats;
	}

	public void setEatSeats(String eatSeats) {
		this.eatSeats = eatSeats;
	}

	public String getlBooks() {
		return lBooks;
	}

	public void setlBooks(String lBooks) {
		this.lBooks = lBooks;
	}

	public String getNewspapers() {
		return newspapers;
	}

	public void setNewspapers(String newspapers) {
		this.newspapers = newspapers;
	}

	public String getlSeats() {
		return lSeats;
	}

	public void setlSeats(String lSeats) {
		this.lSeats = lSeats;
	}

	public String gettComputers() {
		return tComputers;
	}

	public void settComputers(String tComputers) {
		this.tComputers = tComputers;
	}

	public String gettNotebooks() {
		return tNotebooks;
	}

	public void settNotebooks(String tNotebooks) {
		this.tNotebooks = tNotebooks;
	}

	public String getsStandard() {
		return sStandard;
	}

	public void setsStandard(String sStandard) {
		this.sStandard = sStandard == null ? null : sStandard.trim();
	}

	public String getsMoney() {
		return sMoney;
	}

	public void setsMoney(String sMoney) {
		this.sMoney = sMoney;
	}

	public String getEquMoney() {
		return equMoney;
	}

	public void setEquMoney(String equMoney) {
		this.equMoney = equMoney;
	}

	public String getEquipments() {
		return equipments;
	}

	public void setEquipments(String equipments) {
		this.equipments = equipments;
	}

	public String getAllArea() {
		return allArea;
	}

	public void setAllArea(String allArea) {
		this.allArea = allArea;
	}

	public String getMainArea() {
		return mainArea;
	}

	public void setMainArea(String mainArea) {
		this.mainArea = mainArea;
	}

	public String getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(String checkDate) {
		this.checkDate = checkDate == null ? null : checkDate.trim();
	}

	public Integer getxCheckstate() {
		return xCheckstate;
	}

	public void setxCheckstate(Integer xCheckstate) {
		this.xCheckstate = xCheckstate;
	}

	public Integer getcCheckstate() {
		return cCheckstate;
	}

	public void setcCheckstate(Integer cCheckstate) {
		this.cCheckstate = cCheckstate;
	}

	public String getCheckComment() {
		return checkComment;
	}

	public void setCheckComment(String checkComment) {
		this.checkComment = checkComment == null ? null : checkComment.trim();
	}

	public String getCheckPer() {
		return checkPer;
	}

	public void setCheckPer(String checkPer) {
		this.checkPer = checkPer == null ? null : checkPer.trim();
	}
	

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "School [sid=" + sid + ", sdate=" + sdate + ", userid=" + userid + ", eatSeats=" + eatSeats + ", lBooks="
				+ lBooks + ", newspapers=" + newspapers + ", lSeats=" + lSeats + ", tComputers=" + tComputers
				+ ", tNotebooks=" + tNotebooks + ", sStandard=" + sStandard + ", sMoney=" + sMoney + ", equMoney="
				+ equMoney + ", equipments=" + equipments + ", allArea=" + allArea + ", mainArea=" + mainArea
				+ ", checkDate=" + checkDate + ", xCheckstate=" + xCheckstate + ", cCheckstate=" + cCheckstate
				+ ", checkComment=" + checkComment + ", checkPer=" + checkPer + ", state=" + state + "]";
	}


}